#ifndef CEXECCMD_H
#define CEXECCMD_H

#include <QObject>
#include <QProcess>

class CExecCmd : public QObject
{
    Q_OBJECT
public:
    explicit CExecCmd(QObject *parent = 0);

    bool doCmd(QString cmd,QStringList argv);
    QString get_text(QString context,QString tagStart,QString tagEnd);
    bool textChange(QString &context,QString tagStart,QString tagEnd,QString replace);
    char *get_network_configure(int index);
    int set_network_configure(QString ip, QString mask, QString gw,QString dns,int sip);

    int doExec();

private:
    int set_sipserver_ip(QString ip);

    QProcess _pro,_pro1;
};

#endif // CEXECCMD_H
